home *** CD-ROM | disk | FTP | other *** search
/ GFX Sensations 1 / Graphic Sensations - Volume 1.iso / tools / amiga / 3d_tools / irit40s.lha / Irit / makeflag.unx < prev    next >
Encoding:
Text File  |  1993-12-30  |  6.1 KB  |  218 lines

  1. #
  2. # The XXX_DIR variables below MUST have ABSOLUTE path. Since this file
  3. # is sourced from several directories relative path specification will
  4. # be simple wrong.
  5. #
  6.  
  7. SRC_DIR = /mach/issue/misc/gershon/irit/sgi4d
  8. #
  9. # All libraries created will be installed into the LIB_DIR directory.
  10. #
  11. LIB_DIR = $(SRC_DIR)/lib
  12.  
  13. #
  14. # All includes files associated with the installed libraries will be
  15. # installed into the INC_DIR directory.
  16. #
  17. INC_DIR = $(SRC_DIR)/inc
  18.  
  19. #
  20. # All binaries created will be installed into the BIN_DIR directory.
  21. #
  22. BIN_DIR = $(SRC_DIR)/bin
  23.  
  24. #
  25. # Uncomment the correct set of variables to be used or modify it for
  26. # your system.
  27. #
  28. # -D flags:
  29. #
  30. # -D__GL__ - if your system supports gl graphics library (SGI 4d & IBM R6000).
  31. #
  32. # -D__X11__ - if your system supports X11. Only one of __GL__ or __X11__ should
  33. #    be used.
  34. #
  35. #  Emulation to the following function are available by defining the
  36. #  following. Look at misc_lib/xgeneral.c/h for implementation.
  37. # -DGETCWD - if getcwd is not defined in this system.
  38. # -DSTRSTR - if strstr is not defined in this system.
  39. # -DSTRDUP - if strdup is not defined in this system.
  40. # -DSTRICMP - if stricmp and strincmp are not defined in this system.
  41. #
  42. # -DTIMES - if times is defined in your system, otherwise uses time.
  43. #
  44. # -DRAND - if the (s)rand random number generator exists.
  45. # -DRAND48 - ?rand48 random number generators exists.
  46. #    If non of RAND or RAND48 are defined, (s)random is used.
  47. #
  48. # -DUSLEEP - if usleep is defined in the system.
  49. # -DSGINAP - on sgi systems instead of usleep.
  50. #
  51. # -DNO_VOID_PTR - if your C compiler does not support (void *).
  52. #
  53. # -DUSE_VARARGS - if your system does not have stdarg.h and have the old
  54. #    varargs.h.
  55. #
  56. # -DNO_CONCAT_STR - if 'char *p = "This is" "one string";' is illegal.
  57. #
  58. # -DGRAPDRVS - any combination of of 'xgldrvs', 'xgladap', 'x11drvs'.
  59. #
  60. # Other, possibly useful defines (for c code development):
  61. #
  62. # -DDEBUG - for some debugging functions in the code (that can be invoked
  63. #        from a debugger).
  64. #
  65.  
  66. #
  67. # Flags for SGI 4d, Irix 3.x, using GL or X11:
  68. #
  69. # CC = cc
  70. # DFLAGS = -DNO_VOID_PTR -DSTRICMP -DNO_CONCAT_STR -DSGINAP -DRAND48 -DTIMES -D__UNIX__ -D__GL__ -D__X11__
  71. # CFLAGS = -O $(DFLAGS) -Olimit 1000 -Wf,-XNh5000 -Wf,-XNd5000 -G 4
  72. # CFLAGS = -g $(DFLAGS) -Olimit 1000 -Wf,-XNh5000 -Wf,-XNd5000 -G 4
  73. # MORELIBS = -lbsd
  74. # GRAPX11LIBS = -lX11
  75. # GRAPGLLIBS = -lgl_s
  76. # GRAPDRVS = xgldrvs x11drvs nuldrvs
  77.  
  78. #
  79. # Flags for SGI 4d, Irix 4.0, using GL or X11:
  80. #
  81. CC = cc -fullwarn -woff 302,303,269,927 -xansi
  82. DFLAGS = -DSTRICMP -DSGINAP -DRAND48 -DTIMES -D__UNIX__ -D__GL__ -D__X11__
  83. # CFLAGS = -O $(DFLAGS) -Olimit 1000 -Wf,-XNh5000 -Wf,-XNd5000 -G 4
  84. CFLAGS = -g $(DFLAGS) -Olimit 1000 -Wf,-XNh5000 -Wf,-XNd5000 -G 4
  85. MORELIBS = -lbsd
  86. GRAPX11LIBS = -lX11
  87. GRAPGLLIBS =-lgl_s
  88. GRAPDRVS = xgldrvs x11drvs nuldrvs
  89.  
  90. #
  91. # Flags for i386 SVR4 using X11
  92. #
  93. # CC = cc
  94. # DFLAGS = -D__UNIX__ -D__X11__ -DSTRICMP 
  95. # CFLAGS = -O $(DFLAGS)
  96. # CFLAGS = -g $(DFLAGS)
  97. # MORELIBS = -lsocket -lnsl
  98. # GRAPX11LIBS = -lX11
  99. # GRAPDRVS = x11drvs nuldrvs
  100.  
  101. #
  102. # Flags for BSD4.3/SUN O.S. 4.1.1 using gcc 1.39 and X11:
  103. # Note you cannot use SUN's native cc compiler since it does not support
  104. # Ansi C.
  105. #
  106. # CC = gcc
  107. # DFLAGS = -DUSE_VARARGS -DUSLEEP -DTIMES -D__UNIX__ -D__X11__
  108. # CFLAGS = -O $(DFLAGS)
  109. # CFLAGS = -g $(DFLAGS)
  110. # MORELIBS = 
  111. # GRAPX11LIBS = -lX11
  112. # GRAPDRVS = x11drvs nuldrvs
  113.  
  114. #
  115. # Flags for SUN ipx O.S. 4.1.3 using gcc 2.4.5 and X11:
  116. # Note you cannot use SUN's native cc compiler since it does not support
  117. # Ansi C.
  118. #
  119. # CC = gcc
  120. # DFLAGS = -DTIMES -DUSLEEP -D__UNIX__ -D__X11__
  121. # CFLAGS = -O2 $(DFLAGS)
  122. # CFLAGS = -g $(DFLAGS)
  123. # MORELIBS = 
  124. # GRAPX11LIBS = -lX11
  125. # GRAPDRVS = x11drvs nuldrvs
  126.  
  127. #
  128. # Flags for HPBSD 4.3, HP300/400 and X11
  129. # Note I used gnumake here since the provided make do not support the
  130. # 'include ../makeflag.unx' directive.
  131. #
  132. # CC = gcc
  133. # DFLAGS = -DUSE_VARARGS -DRAND48 -DTIMES -D__UNIX__ -D__X11__ -DSTRICMP -DSTRSTR -DGETCWD
  134. # CFLAGS = -O $(DFLAGS)
  135. # CFLAGS = -g -pg $(DFLAGS)
  136. # MORELIBS = 
  137. # GRAPX11LIBS = -lX11
  138. # GRAPDRVS = x11drvs nuldrvs
  139.  
  140. #
  141. # Flags for a DEC 5000/200, with gcc, x11:
  142. #
  143. # CC = gcc
  144. # DFLAGS = -DSTRDUP -DSTRICMP -DRAND48 -DTIMES -D__UNIX__ -D__X11__
  145. # CFLAGS = -O $(DFLAGS)
  146. # CFLAGS = -O -fstrength-reduce -fcombine-regs -fforce-mem -fforce-addr -fomit-frame-pointer -finline-functions -fcaller-saves -fdelayed-branch $(DFLAGS)
  147. # MORELIBS = 
  148. # GRAPX11LIBS = -lX11
  149. # GRAPDRVS = x11drvs nuldrvs
  150.  
  151. #
  152. # Flags for a DEC 5000/240, with cc, x11:
  153. #
  154. # CC = cc
  155. # DFLAGS = -DSTRDUP -DSTRICMP -DRAND48 -DTIMES -DNO_CONCAT_STR -D__UNIX__ -D__X11__
  156. # CFLAGS = -O $(DFLAGS)
  157. # CFLAGS = -g $(DFLAGS)
  158. # MORELIBS = 
  159. # GRAPX11LIBS = -lX11
  160. # GRAPDRVS = x11drvs nuldrvs
  161.  
  162. #
  163. # Flags for IBM RS6000 using GL or X11
  164. # The gl implementation (in both software and hardware) on the RS6000
  165. # could be better. Although basically working, its speed is approximately
  166. # the same as X11 (You do get hardware rendering though)...
  167. #
  168. # CC = xlc
  169. # DFLAGS = -D_POSIX_SOURCE -D_ALL_SOURCE -DSTRSTR -DSTRDUP -DSTRICMP -DRAND48 -DTIMES -D__UNIX__ -D__X11__ -D__GL__
  170. # CFLAGS = -O -qnoro $(DFLAGS)
  171. # CFLAGS = -g -pg -qnoro $(DFLAGS)
  172. # MORELIBS =
  173. # GRAPX11LIBS = -lX11
  174. # GRAPGLLIBS = -lgl
  175. # GRAPDRVS = xgldrvs x11drvs nuldrvs
  176.  
  177. #
  178. # Flags for HP 7xx (snake) machines running hpux.
  179. #
  180. # CC = cc
  181. # DFLAGS = -DSTRICMP  -DRAND -DTIMES -D__UNIX__ -D__X11__
  182. # CFLAGS = -Aa -O $(DFLAGS) -D_INCLUDE_POSIX_SOURCE
  183. # CFLAGS = -Aa -g $(DFLAGS) -D_INCLUDE_POSIX_SOURCE
  184. # MORELIBS =
  185. # GRAPX11LIBS = -L/usr/lib/X11R4 -lX11
  186. # GRAPDRVS = x11drvs nuldrvs
  187.  
  188. #
  189. # Flags for IBM PC, SYSV3.2, ISC 2.2.1 and MIT X11R4, using gcc 1.40
  190. #
  191. # CC = gcc
  192. # DFLAGS = -DSTRICMP -DNO_CONCAT_STR -DUSE_VARARGS -DRAND48 -DTIMES -D__UNIX__ -D__X11__ -DNO_ASM -DISC
  193. # CFLAGS = -O $(DFLAGS)
  194. # MORELIBS = -L/usr2/lib -linet -lpt -lcposix
  195. # GRAPX11LIBS = -lX11_s
  196. # GRAPDRVS = x11drvs nuldrvs
  197.  
  198. #
  199. # Flags for Evans & Sutherland ESV
  200. #
  201. # CC = cc
  202. # DFLAGS = -DSTRICMP -DNO_CONCAT_STR -DRAND48 -DTIMES -D__UNIX__ -D__X11__ 
  203. # CFLAGS = -systype sysv -s -O $(DFLAGS)
  204. # MORELIBS = -systype sysv -lbsd
  205. # GRAPX11LIBS = -lX11
  206. # GRAPDRVS = x11drvs nuldrvs
  207.  
  208. #
  209. # Default rule for compilation.
  210. #
  211. .c.o:
  212.     $(CC) $(CFLAGS) -I. -I$(INC_DIR) -c $<
  213.  
  214. #
  215. # All libraries.
  216. #
  217. LIBS =    -L$(LIB_DIR) -lgeom -lprsr -lcagd -lmisc # -lgif
  218.